﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using VisionCloud.Core.Model.Enums;

namespace VisionCloud.Core.Model.Sys
{
    /// <summary>
    /// 系统发版记录
    /// </summary>
    [Table("SysReleaseRecord")]
    public class SysReleaseRecord : BaseEntity
    {
        [Key]
        public Guid ReleaseId { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        public string Version { get; set; }

        public PackTypeEnum PackType { set; get; }

        public UpdateTypeEnum UpdateType { set; get; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime PublishDate { set; get; }

        /// <summary>
        /// 升级描述
        /// </summary>
        public string Description { set; get; }

        /// <summary>
        /// 上传的升级包地址
        /// </summary>
        public string FilePath { set; get; }

        /// <summary>
        /// 升级包的MD5
        /// </summary>
        public string FileKey { get; set; }
    }
}
